package santiago.domain;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class Lot implements Serializable {

    private Map<CardinalPoint, Field> Fields;

    public Lot(Field NorthEastField, Field SouthEastField, Field SouthWestField, Field NorthWestField) {
        Fields = new HashMap<>();
        Fields.put(CardinalPoint.NORTH_EAST, NorthEastField);
        Fields.put(CardinalPoint.SOUTH_EAST, SouthEastField);
        Fields.put(CardinalPoint.NORTH_WEST, NorthWestField);
        Fields.put(CardinalPoint.SOUTH_WEST, SouthWestField);
    }

    public Field getField(CardinalPoint Location) {
        return Fields.get(Location);
    }
}
